package uy.com.csi.gestpro.model.proyecto;

import java.io.Serializable;

import javax.persistence.*;

import uy.com.csi.gestpro.model.mantenimiento.GpClma;
import uy.com.csi.gestpro.util.Constante;

import java.util.Date;
import java.util.List;

/**
 * The persistent class for the gp_infrme_drio database table.
 * 
 */
@Entity
@Table(name = "gp_infrme_drio", schema = "proyecto")
@NamedQuery(name = "GpInfrmeDrio.findAll", query = "SELECT g FROM GpInfrmeDrio g")
public class GpInfrmeDrio implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Basic(optional = false)
	@SequenceGenerator(name = "sq_id_informe", sequenceName = "proyecto.sq_id_informe", allocationSize = 1)
    @GeneratedValue(generator = "sq_id_informe")
	private Integer id;

	private String elbrdo;

	@Temporal(TemporalType.DATE)
	@Column(name = "fcha_rgstro")
	private Date fchaRgstro;

	private String hrrio;

	@Temporal(TemporalType.DATE)
	@Column(name = "fcha_infrme")
	private Date fchaInfrme;

	@Column(name = "drccion_obra")
	private Integer drccionObra;

	@Column(name = "usrnme_snc")
	private String usrnmeSnc;

	@Column(name = "id_Usrio")
	private Integer idUsrio;

	private Integer sprvsion;
	private Integer encrgdos;
	private Integer mqnstas;
	private Integer ofcles;
	private Integer pnes;

	@Column(name = "fctor_rsgo")
	private String fctorRsgo;

	private String mjras;
	private String sbcntrtos;
	private String cmpras;
	private String sgrdad;
	private String accdntes;
	private String sbrcstos;
	@Column(name = "cmntarios_clnte")
	private String cmntariosClnte;
	
	private String obsrvcnes;

	@Column(name = "obsrvcnes_sbcntrtsta")
	private String obsrvcnesSbcntrtsta;

	// bi-directional many-to-one association to GpEqpmntoObra
	@OneToMany(mappedBy = "gpInfrmeDrio")
	private List<GpEqpmntoObra> gpEqpmntoObras;

	@OneToMany(mappedBy = "gpInfrmeDrio")
	private List<GpAvnce> gpAvnces;

	// bi-directional many-to-one association to GpPrycto
	@ManyToOne(fetch = FetchType.EAGER)
	@JoinColumn(name = "id_prycto")
	private GpPrycto gpPrycto;

	// bi-directional many-to-one association to GpPrycto
	@ManyToOne(fetch = FetchType.EAGER)
	@JoinColumn(name = "id_clma")
	private GpClma gpClma;

	// bi-directional many-to-one association to GpPrsnalObra
	@OneToMany(mappedBy = "gpInfrmeDrio")
	private List<GpPrsnalObra> gpPrsnalObras;

	// bi-directional many-to-one association to GpSbcntrtsta
	@OneToMany(mappedBy = "gpInfrmeDrio")
	private List<GpSbcntrtsta> gpSbcntrtstas;

	@OneToMany(mappedBy = "gpInfrmeDrio")
	private List<GpActvdadFtra> gpActvdadFtras;

	@OneToMany(mappedBy="gpInfrmeDrio")
	private List<GpTreaPrsnal> actvdadPrsnals;
	
	
	@OneToMany(mappedBy="gpInfrmeDrio")
	private List<GpCmpra> gpCmpras; 
	
	@OneToMany(mappedBy="gpInfrmeDrio")
	private List<GpFtoInfrme> ftoInfrmes;
	
	private Boolean estdo;
	
	public GpInfrmeDrio() {
		id = Constante.ID_EMPTY;
	}

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getElbrdo() {
		return this.elbrdo;
	}

	public void setElbrdo(String elbrdo) {
		this.elbrdo = elbrdo;
	}

	public Date getFchaRgstro() {
		return this.fchaRgstro;
	}

	public void setFchaRgstro(Date fchaRgstro) {
		this.fchaRgstro = fchaRgstro;
	}

	public String getHrrio() {
		return this.hrrio;
	}

	public void setHrrio(String hrrio) {
		this.hrrio = hrrio;
	}

	public String getObsrvcnesSbcntrtsta() {
		return this.obsrvcnesSbcntrtsta;
	}

	public void setObsrvcnesSbcntrtsta(String obsrvcnesSbcntrtsta) {
		this.obsrvcnesSbcntrtsta = obsrvcnesSbcntrtsta;
	}

	public List<GpEqpmntoObra> getGpEqpmntoObras() {
		return this.gpEqpmntoObras;
	}

	public void setGpEqpmntoObras(List<GpEqpmntoObra> gpEqpmntoObras) {
		this.gpEqpmntoObras = gpEqpmntoObras;
	}

	public GpEqpmntoObra addGpEqpmntoObra(GpEqpmntoObra gpEqpmntoObra) {
		getGpEqpmntoObras().add(gpEqpmntoObra);
		gpEqpmntoObra.setGpInfrmeDrio(this);

		return gpEqpmntoObra;
	}

	public GpEqpmntoObra removeGpEqpmntoObra(GpEqpmntoObra gpEqpmntoObra) {
		getGpEqpmntoObras().remove(gpEqpmntoObra);
		gpEqpmntoObra.setGpInfrmeDrio(null);

		return gpEqpmntoObra;
	}

	public GpPrycto getGpPrycto() {
		return this.gpPrycto;
	}

	public void setGpPrycto(GpPrycto gpPrycto) {
		this.gpPrycto = gpPrycto;
	}

	public List<GpPrsnalObra> getGpPrsnalObras() {
		return this.gpPrsnalObras;
	}

	public void setGpPrsnalObras(List<GpPrsnalObra> gpPrsnalObras) {
		this.gpPrsnalObras = gpPrsnalObras;
	}

	public GpPrsnalObra addGpPrsnalObra(GpPrsnalObra gpPrsnalObra) {
		getGpPrsnalObras().add(gpPrsnalObra);
		gpPrsnalObra.setGpInfrmeDrio(this);

		return gpPrsnalObra;
	}

	public GpPrsnalObra removeGpPrsnalObra(GpPrsnalObra gpPrsnalObra) {
		getGpPrsnalObras().remove(gpPrsnalObra);
		gpPrsnalObra.setGpInfrmeDrio(null);

		return gpPrsnalObra;
	}

	public List<GpSbcntrtsta> getGpSbcntrtstas() {
		return this.gpSbcntrtstas;
	}

	public void setGpSbcntrtstas(List<GpSbcntrtsta> gpSbcntrtstas) {
		this.gpSbcntrtstas = gpSbcntrtstas;
	}

	public GpSbcntrtsta addGpSbcntrtsta(GpSbcntrtsta gpSbcntrtsta) {
		getGpSbcntrtstas().add(gpSbcntrtsta);
		gpSbcntrtsta.setGpInfrmeDrio(this);

		return gpSbcntrtsta;
	}

	public GpSbcntrtsta removeGpSbcntrtsta(GpSbcntrtsta gpSbcntrtsta) {
		getGpSbcntrtstas().remove(gpSbcntrtsta);
		gpSbcntrtsta.setGpInfrmeDrio(null);

		return gpSbcntrtsta;
	}

	public GpClma getGpClma() {
		return gpClma;
	}

	public void setGpClma(GpClma gpClma) {
		this.gpClma = gpClma;
	}

	public Date getFchaInfrme() {
		return fchaInfrme;
	}

	public void setFchaInfrme(Date fchaInfrme) {
		this.fchaInfrme = fchaInfrme;
	}

	public Integer getDrccionObra() {
		return drccionObra;
	}

	public void setDrccionObra(Integer drccionObra) {
		this.drccionObra = drccionObra;
	}

	public Integer getSprvsion() {
		return sprvsion;
	}

	public void setSprvsion(Integer sprvsion) {
		this.sprvsion = sprvsion;
	}

	public Integer getEncrgdos() {
		return encrgdos;
	}

	public void setEncrgdos(Integer encrgdos) {
		this.encrgdos = encrgdos;
	}

	public Integer getMqnstas() {
		return mqnstas;
	}

	public void setMqnstas(Integer mqnstas) {
		this.mqnstas = mqnstas;
	}

	public Integer getOfcles() {
		return ofcles;
	}

	public void setOfcles(Integer ofcles) {
		this.ofcles = ofcles;
	}

	public Integer getPnes() {
		return pnes;
	}

	public void setPnes(Integer pnes) {
		this.pnes = pnes;
	}

	public Integer getIdUsrio() {
		return idUsrio;
	}

	public void setIdUsrio(Integer idUsrio) {
		this.idUsrio = idUsrio;
	}

	public String getUsrnmeSnc() {
		return usrnmeSnc;
	}

	public void setUsrnmeSnc(String usrnmeSnc) {
		this.usrnmeSnc = usrnmeSnc;
	}

	public List<GpAvnce> getGpAvnces() {
		return gpAvnces;
	}

	public void setGpAvnces(List<GpAvnce> gpAvnces) {
		this.gpAvnces = gpAvnces;
	}

	public List<GpActvdadFtra> getGpActvdadFtras() {
		return gpActvdadFtras;
	}

	public void setGpActvdadFtras(List<GpActvdadFtra> gpActvdadFtras) {
		this.gpActvdadFtras = gpActvdadFtras;
	}

	public String getMjras() {
		return mjras;
	}

	public void setMjras(String mjras) {
		this.mjras = mjras;
	}

	public String getSbcntrtos() {
		return sbcntrtos;
	}

	public void setSbcntrtos(String sbcntrtos) {
		this.sbcntrtos = sbcntrtos;
	}

	public String getCmpras() {
		return cmpras;
	}

	public void setCmpras(String cmpras) {
		this.cmpras = cmpras;
	}

	public String getSgrdad() {
		return sgrdad;
	}

	public void setSgrdad(String sgrdad) {
		this.sgrdad = sgrdad;
	}

	public String getAccdntes() {
		return accdntes;
	}

	public void setAccdntes(String accdntes) {
		this.accdntes = accdntes;
	}

	public String getSbrcstos() {
		return sbrcstos;
	}

	public void setSbrcstos(String sbrcstos) {
		this.sbrcstos = sbrcstos;
	}

	public String getCmntariosClnte() {
		return cmntariosClnte;
	}

	public void setCmntariosClnte(String cmntariosClnte) {
		this.cmntariosClnte = cmntariosClnte;
	}

	public String getFctorRsgo() {
		return fctorRsgo;
	}

	public void setFctorRsgo(String fctorRsgo) {
		this.fctorRsgo = fctorRsgo;
	}

	public List<GpTreaPrsnal> getActvdadPrsnals() {
		return actvdadPrsnals;
	}

	public void setActvdadPrsnals(List<GpTreaPrsnal> actvdadPrsnals) {
		this.actvdadPrsnals = actvdadPrsnals;
	}

	public List<GpCmpra> getGpCmpras() {
		return gpCmpras;
	}

	public void setGpCmpras(List<GpCmpra> gpCmpras) {
		this.gpCmpras = gpCmpras;
	}

	public List<GpFtoInfrme> getFtoInfrmes() {
		return ftoInfrmes;
	}

	public void setFtoInfrmes(List<GpFtoInfrme> ftoInfrmes) {
		this.ftoInfrmes = ftoInfrmes;
	}

	public Boolean getEstdo() {
		return estdo;
	}

	public void setEstdo(Boolean estdo) {
		this.estdo = estdo;
	}

	public String getObsrvcnes() {
		return obsrvcnes;
	}

	public void setObsrvcnes(String obsrvcnes) {
		this.obsrvcnes = obsrvcnes;
	}

}